package com.neuedu.action.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.neuedu.model.Device;
import com.neuedu.model.Paper;
import com.neuedu.service.PaperService;

@Controller
@RequestMapping("/paperXq")
public class PaperXqAction {
	@Autowired
	private PaperService PaperService;
	
	@RequestMapping(value = "/findOne")
	public String findAll(HttpServletRequest request, HttpServletResponse response) throws Exception {
		int DeviceNo = Integer.parseInt(request.getParameter("paperNo"));

		Paper u = PaperService.findOne(DeviceNo);
		request.setAttribute("paper", u);

		return "paperXq";
		
	}
}
